package com.woniuxy.microsysserver.service.impl;

import com.woniuxy.microsysserver.bean.DepartmentInfo;
import com.woniuxy.microsysserver.mapper.DepartmentMapper;
import com.woniuxy.microsysserver.service.IDepService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(readOnly = true)
public class DepServiceImpl implements IDepService {

    @Resource
    private DepartmentMapper departmentMapper;


    @Override
    public List<DepartmentInfo> findAll() {
        return departmentMapper.findAll();
    }
}
